<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script src="https://cdn.jsdelivr.net/npm/vue@2.5.21/dist/vue.js"></script>
    <title>Document</title>
</head>
<body>
<div id="vue">
    <form action="http://www.baidu.com">
    单复选框：<input type="radio"  name="sex" v-model="checked" value="男">
        <input type="radio"   name="sex" v-model="checked" value="女">
    &nbsp;&nbsp;<label>{{ checked }}</label>
        <input type="submit" v-model="sub">
        <div>
            多复选框：
            <input type="checkbox" id="jack" value="Jack" v-model="checkedNames">
            <label for="jack">Jack</label>
            <input type="checkbox" id="john" value="John" v-model="checkedNames">
            <label for="john">John</label>
            <input type="checkbox" id="mike" value="Mike" v-model="checkedNames">
            <label for="mike">Mike</label>
            <span>选中的值: {{ checkedNames }}</span>
        </div>
        <div>
            <select v-model="selected" name="level">
                <option value="">请选择</option>
                <option value="A">A</option>
                <option value="B">B</option>
                <option value="C">C</option>
            </select>
            <span>下拉框的值为:{{selected}}</span>
        </div>
    </form>
</div>
<script type="text/javascript">
    var vm = new Vue({
        el: '#vue',
        data: {
            checked: false,
            sub:"提交",
            checkedNames: [],
            selected:''
        }
    });
</script>
</body>
</html>